package com.sofwin.controller.contents;

import com.sofwin.dto.BusinessDto;
import com.sofwin.pojo.CBusinessmodelWithBLOBs;
import com.sofwin.pojo.CSupplier;
import com.sofwin.service.contents.CBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @program: ssm-parent
 * @description: 企业数据管理-商业模式
 * @author: Mr.jhx
 * @create: 2021-04-25 11:12
 * @Version 1.0
 **/
@Controller
@RequestMapping("system/business")
public class BusinessController {

    @Autowired
    private CBusinessService businessService;
    @RequestMapping("datas")
    public String data(Integer companyId, Model model){

        BusinessDto BusinessDto = businessService.selectbusinessById(1);
        model.addAttribute("BusinessDto",BusinessDto);
        return "c_information/contents/business";
      }
}
